home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / wb / czesc_2 / ml / man / dos / run < prev    next >
Text File  |  1993-01-23  |  2KB  |  50 lines

  1. RUN(1)                   DOS COMMANDS                      RUN(1)
  2.  
  3. NAME
  4.      RUN : To execute a command as a background process.
  5.  
  6. SYNOPSIS
  7.      RUN <command> [+ <{command}>]
  8.  
  9. TEMPLATE
  10.      RUN "COMMAND/F"
  11.  
  12. PATH
  13.      C:
  14.  
  15. DESCRIPTION
  16.            RUN executes one or more commands in the background. What it
  17.      really does is to start a new CLI process without creating a new window.
  18.      The input and output stream of the current CLI are passed to the new
  19.      one. The command(s) are then executed by the new CLI, the input and
  20.      output being done in the "old" CLI window.
  21.            Usually, only commands that have little input and output will be
  22.      started with run. For the commands that have a QUIET switch (like COPY
  23.      for example) it is better to set it. Otherwise, the output can be
  24.      redirected into NIL: . This way, the CLI window will not be messed up
  25.      by the commands that run in the background.
  26.            RUN can also be used to start a program (like a text editor for
  27.      example) that opens its own window. A possible application would be to
  28.      edit and compile files simultaneously.
  29.            RUN is also useful when using PIPEs. The command that reads the
  30.      PIPE is started with RUN (the input being redirected to that PIPE) and
  31.      the command that writes to the PIPE is started from the command line
  32.      (cfr the examples.)
  33.  
  34. SEE ALSO
  35.      STATUS
  36.  
  37. EXAMPLES :
  38.     - To start an editor in the background:
  39.       > RUN MyEditor MyProg.c
  40.  
  41.     - To start a process that will print a short message on the screen at a
  42.       given time:
  43.       > RUN wait until 12:00 +
  44.       > ECHO "It is lunch time!!"
  45.  
  46.     - To list a directory with more, using a PIPE
  47.       > RUN more <PIPE:A
  48.       > list >PIPE:A 
  49.  
  50.